<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>

<body>
<?php $sql2=mysql_query("select * from category"); ?>
<form id="form1" name="form1" method="post" action="index.php?page=search&&act=advandce">
      <table align="center">
          <tr>
            <td >Tên sản phẩm: </td>
            <td ><input name="txtsanpham" type="text"  class="input-text" id="txtsanpham" size="40" value="<?php echo $_POST['txtsanpham'];?>"/></td>
            <td ><select name="hangsx" size="1" class="input-text"  id="hangsx">
                <option>-- Chọn hãng sx --</option>
                <?php while($row=mysql_fetch_row($sql2)){?>
                <option value="<?php echo $row[0];?>" <?php if($_POST['hangsx']==$row[0]){?> selected="selected" <?php }?>>&nbsp; &nbsp;&nbsp;<?php echo strtoupper($row[1]); ?></option>
                <?php }?>
            </select></td>
            <td ><input type="submit" name="Submit2" value="Tìm kiếm" class="button"/></td>
          </tr>
      </table>
</form>
<hr size="1" width="550" />
</body>
</html>
